class Assignemnt < ActiveRecord::Base
    validates_presence_of :title, :points_possible
    validates_numericality_of :points_possible
    #errors.add(:points_possible, "Not valid: points_possible must be greater than zero") if points_possible.nil? || points_possible < 0

    belongs_to :grade_entry
    
    protected
    	def self.find_all_assignemnts
    		find(:all, :order => "id")
    	end
	
end
